﻿<%@ Page Title="" Language="C#" MasterPageFile="AdminMasterPage.master" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="Login" %>

<%@ Register assembly="DevExpress.Web.ASPxEditors.v10.2, Version=10.2.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    <asp:MultiView ID="_multiView" runat="server">
        <asp:View ID="_viewLogin" runat="server">
        
            <table>
                <tr>
                    <td colspan="3">
                        <h3> Đăng nhập </h3>
                    </td>
                </tr>
                <tr>
                    <td>
                        <p>Tên đăng nhập</p>
                    </td>
                    <td>
                        <asp:TextBox ID="_txtUsername" runat="server"></asp:TextBox>
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                            ControlToValidate="_txtUsername" ErrorMessage="Nhập tên đăng nhập" 
                            ValidationGroup="Require">*</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        <p> Mật khẩu</p>
                    </td>
                    <td>
                        <asp:TextBox ID="_txtPassword" runat="server" TextMode="Password"></asp:TextBox>
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                            ControlToValidate="_txtPassword" ErrorMessage="Nhập mật khẩu">*</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td></td>
                    <td colspan="2">
                        <asp:CheckBox ID="_chkRemember" runat="server" Text="Nhớ tên tôi" /> <br />
<!--                        <a href="Register.aspx?ReturnURL=Order.aspx">Chưa có tài khoản</a> <br />
                        <a href="Login.aspx?action=forgotpassword">Quên mật khẩu</a> -->
                    </td>
                </tr>
                <tr>
                    <td colspan="3">
                        <dx:ASPxValidationSummary ID="ASPxValidationSummary1" runat="server" 
                            ValidationGroup="Require">
                        </dx:ASPxValidationSummary>
                    </td>
                </tr>
                <tr>
                    <td colspan="3" align="center">
                        <asp:Button CssClass="Button" ID="_btnLogin" runat="server" onclick="_btnLogin_Click" 
                            Text="Đăng nhập" />
                        <asp:Button CssClass="Button" ID="_btnLoginCancel" runat="server" onclick="_btnLoginCancel_Click" 
                            Text="Hủy" CausesValidation="False" />
                    </td>
                </tr>
            </table>
            
        </asp:View>
        <asp:View ID="_viewForgotPassword" runat="server">
            <table>
                <tr>
                    <td colspan="3">
                        <h3>Quên mật khẩu</h3>
                    </td>
                </tr>
                <tr>
                    <td>
                        <p>Tên đăng nhập</p>
                    </td>
                    <td>
                        <asp:TextBox ID="_txtUsername2" runat="server"></asp:TextBox>
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                            ControlToValidate="_txtUsername2" 
                            ErrorMessage="Đề lấy được mật khẩu cần nhận tên đăng nhập">*</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td></td>
                    <td >
                        <dx:ASPxCaptcha ID="_captChar" runat="server" CodeLength="6">
                            <ValidationSettings ErrorText="Mã kiểm tra chưa khớp">
                            </ValidationSettings>
                            <RefreshButton Text="Hình khác">
                            </RefreshButton>
                            <ChallengeImage ForegroundColor="#000000">
                            </ChallengeImage>
                            <TextBox LabelText="Nhập đoạn mã bên trên" Position=Bottom />
                        </dx:ASPxCaptcha>
                    </td>
                    <td></td>
                </tr>
                <tr>
                    <td colspan="3">
                        <dx:ASPxValidationSummary ID="ASPxValidationSummary2" runat="server">
                        </dx:ASPxValidationSummary>
                    </td>
                </tr>
                <tr>
                    <td colspan="3" align="center">
                        <asp:Button CssClass="Button" ID="_btnOk1" runat="server" Text="Lấy mật khẩu" onclick="_btnOk1_Click"/>
                        <asp:Button CssClass="Button" ID="_btnCancel2" runat="server" Text="Hủy" 
                            onclick="_btnLoginCancel_Click" CausesValidation="False"/>
                    </td>
                </tr>
            </table>
        </asp:View>
    </asp:MultiView>

</asp:Content>


